﻿<fp:ModuleControl x:Class="ForumsBrowser.MiniBrowserSettings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:fp="clr-namespace:ForumsBrowser"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="UserControl_Loaded"
    Style="{StaticResource ModuleStyle}" Title="Miniature View Settings">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal">
            <CheckBox x:Name="chkAllowMiniView" Content="Show miniature view when minimized" />
        </StackPanel>
        <StackPanel Margin="0,5,0,0" Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Stretch">
            <TextBlock TextWrapping="Wrap">
                <TextBlock.Text>
                    <MultiBinding StringFormat="{}Number of items to show when the MiniView is collapsed: {0}">
                        <Binding ElementName="sliderNumberOfItems" Path="Value"/>
                    </MultiBinding>
                </TextBlock.Text>
            </TextBlock>
            <Slider x:Name="sliderNumberOfItems" IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="Both" Interval="1" Minimum="1" Maximum="10" Margin="20, 5, 20, 0" HorizontalAlignment="Stretch" SmallChange="1"/>
        </StackPanel>
    </Grid>
</fp:ModuleControl>
